package com.wr.recruit.service.service;

import com.wr.recruit.service.dao.dbo.UserDbo;
import org.springframework.data.domain.Page;

public interface UserService {

    UserDbo getUserInfo(String userName);

    UserDbo updateUserInfo(UserDbo user);

    UserDbo updateUserPassword(String userName, String password);

    UserDbo grantUserRole(Integer userId,Integer grantUserId, int roleId);

    UserDbo createUserInfo(UserDbo user);

    void revokeUserInfo(Integer userId);

    Page<UserDbo> getAllUserList(int pageSize, int pageNum);

    Page<UserDbo> getUserListByUserName(String value, int pageSize, int pageNum);

}
